package cn.wolfcode.orderserver.web.controller;

import cn.wolfcode.orderserver.domain.Order;
import cn.wolfcode.orderserver.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JMJ
 */
@RestController
public class TestController {

    @Autowired
    private IOrderService iOrderService;

    @RequestMapping("/ok")
    public String test() {
        Order order = iOrderService.createOrder(1L,2L);
        return "ok";
    }

}
